<template>
<div>
  <P>分类名称:<input type="text" v-model="form.name"></P>
  <button @click="add">添加</button>
</div>
</template>

<script>
export default {
  name: "show_cate",
  data(){
    return{
      form:{}
    }
  },
  methods:{
    add(){
      this.$axios.post('/users/catem/',this.form)
      .then(res=>{
        console.log(res.data)
      })
    },
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
